package main

import (
	"OldPackageTest/go_mysql/sqlx/config"
	"fmt"
)

func main() {

}
func updateRow() {
	sqlStr := "update student set age=? where id =?"
	res, err := config.DB.Exec(sqlStr, 12, 1)
	if err != nil {
		return
	}
	affected, _ := res.RowsAffected()
	fmt.Println(affected)
}
